<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<!-- Main Header -->
<header class="main-header" th:fragment="header">
    <!-- Logo -->
    <a href="#" id="common-index-page" class="logo" th:href="@{/}">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini"><b>K3C</b></span>
        <!-- logo for regular state and mobile devices -->
        <span class="logo-lg"><b>K3Cloud</b></span>
        <span id="global" th:data-ctx="@{/}" style="display: none;"></span>
    </a>
    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
            <span class="sr-only">Toggle navigation</span>
        </a>
        <!-- Navbar Right Menu -->
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <!-- User Account Menu -->
                <li class="dropdown user user-menu">
                    <!-- Menu Toggle Button -->
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <!-- The user image in the navbar-->
                        <img src="../../static/lib/admin/img/user2-160x160.jpg" class="user-image" alt="User Image" th:src="@{/lib/admin/img/user2-160x160.jpg}">
                        <!-- hidden-xs hides the username on small devices so only the image appears. -->
                        <span class="hidden-xs" th:text="${#authentication.principal.username}">Alexander Pierce</span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- The user image in the menu -->
                        <li class="user-header">
                            <img src="../../static/lib/admin/img/user2-160x160.jpg" class="img-circle" alt="User Image" th:src="@{/lib/admin/img/user2-160x160.jpg}">
                            <p>
                                K3Cloud
                                <small th:text="${#authentication.principal.username}">Alexander Pierce</small>
                            </p>
                        </li>
                        <!-- Menu Body -->
                        <li class="user-body">
                            <div class="row">
                                <div class="col-xs-4 text-center">
                                    <a href="#">诚信</a>
                                </div>
                                <div class="col-xs-4 text-center">
                                    <a href="#">团队</a>
                                </div>
                                <div class="col-xs-4 text-center">
                                    <a href="#">品质</a>
                                </div>
                            </div>
                            <!-- /.row -->
                        </li>
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-right">
                                <a href="javascript:void(0);" class="btn btn-default btn-flat" th:href="@{/logout}">退出</a>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
</header>

<aside class="main-sidebar" th:fragment="menu(activePageCode)">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

        <!-- Sidebar user panel (optional) -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="../../static/lib/admin/img/user2-160x160.jpg" class="img-circle" alt="User Image" th:src="@{/lib/admin/img/user2-160x160.jpg}">
            </div>
            <div class="pull-left info">
                <p th:text="${#authentication.principal.username}">Alexander Pierce</p>
                <!-- Status -->
                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
        </div>
        <!-- search form (Optional) -->
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search...">
                <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
            </div>
        </form>
        <!-- /.search form -->
        <!-- Sidebar Menu -->
        <ul class="sidebar-menu" th:utext="${@menuService.getMenuHtml(#authentication.principal.account.menus,activePageCode)}">
            <li class="header">HEADER</li>
        </ul>
        <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
</aside>

<!-- Main Footer -->
<footer class="main-footer" th:fragment="footer">
    <!-- To the right -->
    <div class="pull-right hidden-xs"></div>
    <!-- Default to the left -->
    <strong>Copyright &copy; 2016 <a href="#">K3Cloud</a>.</strong> All rights reserved.
</footer>
</body>
</html>